package com.neusoft.neu24.nep.controller;


import com.neusoft.neu24.nep.entity.CommonResult;
import com.neusoft.neu24.nep.entity.Sysnode;
import com.neusoft.neu24.nep.service.IRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("/r")
@RefreshScope
public class RoleController {

    @Autowired
    IRoleService roleService;

    @RequestMapping("/get/byid/{roleid}")
    public CommonResult get(@PathVariable("roleid") Integer roleid) {

       return   roleService.selectById(roleid);
    }
}

